home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / gnuwget.zip / wget-1.4.3 / src / systhings.h < prev    next >
C/C++ Source or Header  |  1997-01-17  |  2KB  |  61 lines

  1. /* The dirty system-dependent thingies.
  2.    Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  3.    
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2 of the License, or
  7.    (at your option) any later version.
  8.    
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.    
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. /* This file is included by wget.h.  The .c files need not include it. */
  19.  
  20. #ifndef SYSTHINGS_H
  21. #define SYSTHINGS_H
  22.  
  23. /* The S_* macros are broken on some systems. */
  24. #ifdef NeXT
  25. #ifndef S_ISDIR
  26. # define S_ISDIR(m) (((m) & (_S_IFMT)) == (_S_IFDIR))
  27. #endif
  28. #endif
  29.  
  30. #ifdef ultrix
  31. #ifndef S_ISLNK
  32. # define S_ISLNK(m) (((m) & (S_IFMT)) == S_IFLNK)
  33. #endif
  34. #endif
  35.  
  36. /* Bletch!  SPARC compiler doesn't define sparc (needed by
  37.    arpa/nameser.h) when in -Xc mode.  Luckily, it always defines
  38.    __sparc.  */
  39. #ifdef __sparc
  40. #ifndef sparc
  41. #define sparc
  42. #endif
  43. #endif
  44.  
  45.  
  46. #ifdef WINDOWS
  47. #ifndef S_ISDIR
  48. # define S_ISDIR(m) (((m) & (_S_IFMT)) == (_S_IFDIR))
  49. #endif
  50. #ifndef S_ISLNK
  51. # define S_ISLNK(a) 0
  52. #endif
  53. #endif /* WINDOWS */
  54.  
  55. /* Windows doesn't have sleep */
  56. #ifdef WINDOWS
  57. #  define sleep(t) Sleep(1000 * (t))
  58. #endif   
  59.  
  60. #endif /* SYSTHINGS_H */
  61.